package com.aiti.lulian.service;

import com.aiti.base.core.base.service.BaseService;
import com.aiti.lulian.dto.LuLianSourcingDemandDto;
import com.aiti.lulian.entity.LuLianSourcingDemand;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @ClassName ILuLianSourcingDemandServicer
 * @Description 供需商机表service
 * @Author diaozhende
 * @Date 2024/5/31 0031 10:48
 */
public interface ILuLianSourcingDemandService extends BaseService<LuLianSourcingDemand> {


    /**
     * 分页查询
     *
     * @param sourcingDemandDto 参数对象
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.aiti.lulian.entity.LuLianSourcingDemand>
     * @date 2024/5/31 0031 10:59
     * @author diaozhende
     */
    Page<LuLianSourcingDemand> queryPage(LuLianSourcingDemandDto sourcingDemandDto);

    /**
     * 根据id查询
     *
     * @param id ID
     * @return com.aiti.lulian.entity.LuLianSourcingDemand
     * @date 2024/6/4 0004 10:40
     * @author diaozhende
     */
    LuLianSourcingDemand queryById(String id,String userId);

    List<LuLianSourcingDemand> queryByParams(LuLianSourcingDemand sourcingDemand);

    void saveData(LuLianSourcingDemand demand);


    /**
     * 首页新增询价信息
     *
     * @param sourcingDemand 请求参数
     * @return void
     * @date 2024/6/19 0019 15:28
     * @author diaozhende
     */
    void saveDemandData(LuLianSourcingDemand sourcingDemand);


    LuLianSourcingDemand queryByBaseId(String baseId);
}
